<!DOCTYPE html>
<head>
    <title>{% block title %}{% endblock %}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    {% load static %}
    {% get_static_prefix as STATIC_PREFIX %}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_PREFIX }}css/core.css" />
    {% block extrastyle %}{% endblock %}
    {% block extrahead %}{% endblock %}
</head>
<body>
    <header>
        <div align='center'>
            <h6><a href='/index/'>CDAG</a></h6>
        </div>
    </header>
    
    <nav>
        <ul>
            <li><a href="/">Inicio</a></li>
            <li><a href="/atletas/">Atletas</a></li>
            <li><a href="/entrenadores/">Entrenadores</a></li>
            <li><a href="/deportes/">Deportes</a></li>
            <li><a href="/eventos/">Eventos</a></li>
            {% if user_logged_in %}
            <li><a href="/logout/">Cerrar Sesión</a></li>
            {% else %}
            <li><a href="/login/">Iniciar Sesión</a></li>
            {% endif %}
        </ul>
    </nav>
    
    <section>
        <article class='breadcrumb'>
            {% block breadcrumb %}{% endblock %}
        </article>
        <article class='messages'>
            {% block message %}
                {% if messages %}
                <br/>
                    <ul class="messages">
                    {% for message in messages %}
                        <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
                    {% endfor %}
                    </ul>
                <br/>
                {% endif %}
            {% endblock %}
        </article>
        <article class='title'>
            <h2>{% block titulo %}{% endblock %}</h2>
        </article>
        <article class='content'>
            {% block content %}{% endblock %}
        </article>
    </section>

    <footer>
        <h6><a href="/index/">CDAG</a></h6>
        <ul>
            <li><a href="http://www.confede.org/">CDAG</a></li>
            <li class="space">|</li>
            <li><a href="/informacion/">Informaci&oacuten</a></li>
            <li class="space">|</li>
            <li><a href="/contacto/">Cont&aacutectenos</a></li>
        </ul>
        <p>2011 &copy; www.basededatos.com.gt | Web Designer  | Powered by <a href="http://www.uvg.edu.gt">Universidad del Valle de Guatemala</a></p>
    </footer>
</body>
</html>
